#ifndef GRAVITYGAME_H
#define GRAVITYGAME_H

#include "BlipController.h"
#include <Windows.h>

class GravityGame
{
public:
	GravityGame( HINSTANCE * hinst, int hncmd );
	~GravityGame();

	HWND * GetHWND();

	void StartGame();
	void QuitGame();

private:
	static VOID CALLBACK Timer(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
	static VOID CALLBACK TimerControl( HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
	static LRESULT CALLBACK  WndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
	static GravityGame * m_current_instance;
	
	
	POINT m_pos;
	UINT m_timer_control;
	UINT m_timer;
	bool m_game_running;
	BlipController * m_bc;
	HINSTANCE * m_hinst;
	HWND m_hwnd;
};

#endif